package com.tbit.main.service.impl;

import com.tbit.main.dao.core.ParkFeatureDao;
import com.tbit.main.pojo.ParkFeature;
import com.tbit.main.service.ParkFeatureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LMY
 * @create 2021-09-06 9:58
 */
@Service("parkFeatureService")
public class ParkFeatureServiceImpl implements ParkFeatureService {

    @Autowired
    private ParkFeatureDao parkFeatureDao;

    @Override
    public void addBatch(List<ParkFeature> parkFeatures) {
        parkFeatureDao.addBatch(parkFeatures);
    }

    @Override
    public List<ParkFeature> getByParkPointId(Integer parkPointId) {
        return parkFeatureDao.getByParkPointId(parkPointId);
    }

    @Override
    public void update(ParkFeature parkFeature) {
        parkFeatureDao.update(parkFeature);
    }

    @Override
    public void del(Integer parkPointId) {
        parkFeatureDao.del(parkPointId);
    }
}
